package com.paper.tiger.easy.rpc.c.client;

import com.paper.tiger.easy.rpc.core.kryo.KryoSerializer;
import com.paper.tiger.easy.rpc.s.client.common.Dove;
import com.paper.tiger.easy.rpc.s.client.common.Letter;
import io.netty.buffer.ByteBuf;
import io.netty.buffer.Unpooled;

public class TestKryo {

    public static void main(String[] args) {



        ByteBuf in = Unpooled.buffer();
        Dove dove = new Dove();
        dove.setDoveId("123123");
        dove.setLetterType(1);
        Letter letter = new Letter();
        letter.setArgs(new Object[]{12,"123"});
        letter.setImplClassName("sdfims.class");
        letter.setInterfaceClassName("abc");
        letter.setMethod("method");
        letter.setParamsTypes(null);
        dove.setLetter(letter);

        KryoSerializer.serialize(dove,in);


        Object obj = KryoSerializer.deserialize(in);



    }
}
